<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\massage\controller;

class AdminPrinter extends \app\AdminRest
{
    protected $model;
    public function __construct(\think\App $app)
    {
        parent::__construct($app);
        $this->model = new \app\massage\model\Printer();
    }
    public function printerList()
    {
        $input = $this->_param;
        $dis[] = ["uniacid", "=", $this->_uniacid];
        $dis[] = ["status", ">", -1];
        $data = $this->model->dataList($dis, $input["limit"]);
        return $this->success($data);
    }
    public function printerInfo()
    {
        $input = $this->_param;
        $dis = ["uniacid" => $this->_uniacid];
        $data = $this->model->dataInfo($dis);
        return $this->success($data);
    }
    public function printerAdd()
    {
        $input = $this->_input;
        $input["uniacid"] = $this->_uniacid;
        $data = $this->model->dataAdd($input);
        return $this->success($data);
    }
    public function printerUpdate()
    {
        $input = $this->_input;
        $dis = ["uniacid" => $this->_uniacid];
        $data = $this->model->dataUpdate($dis, $input);
        return $this->success($data);
    }
}

?>